import Vue from 'vue'

Vue.directive('no-repeat',{
  bind:function(el,binding){
    console.log(binding)
    el.addEventListener('click',function(){
      if(!el.disabled){
        el.disabled = true
        let timerId = setTimeout(function(){
          el.disabled = false
          clearTimeout(timerId)
        },binding.value)
      }
    })
  }
})